package cn.sc.summer.protocol.form.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 类名：用户名密码登录表单
 *
 * @author a-xin
 * @date 2023/12/4 11:15
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "用户名密码登录表单")
public class LoginForm implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不能为空！")
    private String username;

    /**
     * 登录密码
     */
    @ApiModelProperty(value = "登录密码")
    @NotBlank(message = "登录密码不能为空！")
    private String password;

}
